<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="error.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<jsp:useBean id="check" class="show.Regche" scope="request" />
</head>

<body>
<%
	  request.setCharacterEncoding("utf-8");
	  String name = null;
	  String pass = null;
	  name = request.getParameter("user");
	  pass = request.getParameter("psw"); 
	  if(check.check(name))
	  {
	      out.print("抱歉，此用户名已被注册");
		  out.print("<br />已有账号？<a href='login.jsp'>登陆</a>     \t");
		  out.print("或者<a href='../index.jsp'>返回首页</a>");
	  }
	  else
	  {
	  %>
       	  	 <jsp:forward page="addInfo.jsp">
			   <jsp:param name="name" value="<%=name%>" />
			   <jsp:param name="pass" value="<%=pass%>" />
			</jsp:forward>
	  <%}
%> 
</body>
</html>
